<?php
class UserController extends Zend_Controller_Action
{
    public function init() 
    {
        
    }
    
    public function indexAction()
    {
        $form = new Form_SignupForm();
        $this->view->form = $form;
        $userModel = new Application_Model_User();
        if($this->getRequest()->isPost())
        {
//            $data = $form->getValues();
            $post = $this->getRequest()->getPost();
            
            $data = array();
            $data['name'] = $post['name'];
            $data['email'] = $post['email'];
            $data['password'] = md5($post['password']);
            $data['city'] = $post['city'];
            //$userModel->save($data);
            $this->_helper->flashMessenger->addMessage('Record Successfully save !');
            $this->_helper->redirector('index','index');
        }
    }
    
    public function userAction()
    {
        $id = $this->_getParam('id');
        echo $id.'AAAAAAAA'; die;
    }
    
}

